package com.example.wisdomclassroomapi.application.service;

import com.example.wisdomclassroomapi.domain.entity.GradeClassEntity;
import com.example.wisdomclassroomapi.domain.service.GradeClassDomainService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
 * @Package: com.example.wisdomclassroomapi.application.service
 * @Description: <>
 * @Author: scholes
 * @CreateDate: 2022-04-18
 * @UpdateUser: scholes
 * @UpdateDate: 2022-04-18
 * @UpdateRemark: <>
 * @Version: 1.0
 */
@Service
public class GradeClassApplicationService {
@Resource
private GradeClassDomainService gradeClassDomainService;

public void add(GradeClassEntity entity) {
    gradeClassDomainService.add(entity);
        }

public GradeClassEntity findById(String id) {
        return gradeClassDomainService.findById(id);
        }

public int updateById(GradeClassEntity entity) {
        return gradeClassDomainService.updateById(entity);
        }

public int deleteById(String id) {
        return gradeClassDomainService.deleteById(id);
        }

public IPage<GradeClassEntity> page(GradeClassEntity entity,IPage page) {
        return gradeClassDomainService.page(entity,page);
        }

public List<GradeClassEntity> list(GradeClassEntity entity) {
        return gradeClassDomainService.list(entity);
        }

        }